/**
 * Copyright &copy; 2012-2016 <a href="https://www.kaaction.com">KAA</a> All rights reserved All rights reserved.
 */
package com.kaaction.modules.crab.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.kaaction.common.persistence.Page;
import com.kaaction.common.service.CrudService;
import com.kaaction.modules.crab.entity.Carrier;
import com.kaaction.modules.crab.dao.CarrierDao;

/**
 * 快递管理Service
 * @author huanghaiming
 * @version 2017-07-21
 */
@Service
@Transactional(readOnly = true)
public class CarrierService extends CrudService<CarrierDao, Carrier> {

	public Carrier get(String id) {
		return super.get(id);
	}
	
	public List<Carrier> findList(Carrier carrier) {
		return super.findList(carrier);
	}
	
	public Page<Carrier> findPage(Page<Carrier> page, Carrier carrier) {
		return super.findPage(page, carrier);
	}
	
	@Transactional(readOnly = false)
	public void save(Carrier carrier) {
		super.save(carrier);
	}
	
	@Transactional(readOnly = false)
	public void delete(Carrier carrier) {
		super.delete(carrier);
	}

	public int getEqual(Carrier carrier) {
		return super.dao.getEqual(carrier);
	}
	
}